﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using GeoClipmapping;

namespace GeoClipmapping.Components
{
    public class TerrainComponent : DrawableGameComponent
    {
        private Camera camera;

        public TerrainComponent(Game game)
            : base(game)
        {
        }

        public override void Initialize()
        {
            camera = Game.Services.GetService(typeof(Camera)) as Camera;
            if (camera == null)
            {
                throw new InvalidOperationException("Cameraservice not found.");
            }

            base.Initialize();
        }

        protected override void LoadContent()
        {

            base.LoadContent();
        }

        public override void Update(GameTime gameTime)
        {

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {

            base.Draw(gameTime);
        }
    }
}
